const { ccclass, property } = cc._decorator;
import { app } from '../../../../app/app';
import BaseView from '../../../../app/base/BaseView';
import { IMiniViewNames } from '../../../../app/executor';
@ccclass
export class PageGame extends BaseView {
    protected miniViews: IMiniViewNames = ['PaperGameTest'];
    protected miniViewsShowCustom = true;
    // 初始化的相关逻辑写在这
    onLoad() {
    }
    // 界面打开时的相关逻辑写在这(onShow可被多次调用-它与onHide不成对)
    onShow() {
        this.showMiniViews({
            views: ['PaperGameTest'],
            onFinish: () => {

            }
        })
        // 显示UI
        // app.manager.ui.show({ name: 'xxxx' })
        app.manager.sound.playMusic({ name: 'music/bgm' });

    }
    // 界面关闭时的相关逻辑写在这(已经关闭的界面不会触发onHide)
    onHide() {
    }
}